package zyh.struts2.action2;

import com.opensymphony.xwork2.ActionSupport;
import zyh.hibernate.dao.BaseHibernateDao;
import zyh.hibernate.pojo.User;
import zyh.service.iface.INewsService;
import zyh.service.iface.IUserService;

import java.util.List;

public class UserAction extends BaseAction {
    private IUserService userService;
    private String username;
    private String password;
    private String rememberMe;
    public String find() throws Exception {
//        StrutsReturn sr=getStrutsReturn();
//        sr.setSuccess(true);
//        sr.setMessage("登录成功");
        return SUCCESS;
    }
    public IUserService getUserService() { return userService; }

    public void setUserService(IUserService userService) { this.userService = userService; }

    public String getUsername() { return username; }

    public void setUsername(String username) { this.username = username; }

    public String getPassword() { return password; }

    public void setPassword(String password) { this.password = password; }

    public String getRememberMe() { return rememberMe; }

    public void setRememberMe(String rememberMe) { this.rememberMe = rememberMe; }
}
